import React, { Component } from 'react'
import { connect } from 'react-redux'

export class TuijianUI extends Component {
  render() {
      console.log(this.props);
    return (
      <div>
          <ul>
              {
                  this.props.list.map((item,index)=>{
                      return (
                          <li key={index}>
                              {item.name}
                          </li>
                      )
                  })
              }
          </ul>
      </div>
    )
  }
}
const mapStateToProps = (state) =>{
    console.log('state',state);
    return {
        list:state.list
    }
}
const mapDispatchToProps = {}
export default connect(mapStateToProps, mapDispatchToProps)(TuijianUI)